<%= form_for [@author, @article] do |f| %>
  <% if @article.errors.any? %>
    <div id="error_explanation">
      <h2><%= t("activerecord.errors.template.header", :model => Article.model_name.human, :count => @article.errors.count) %></h2>
      <ul>
      <% @article.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :body %><br />
    <%= f.text_area :body, :id => "markdown" %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
